package com.zdx.yswl.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.zdx.yswl.R;
import com.zdx.yswl.ui.bean.PanoramaBean;
import com.zdx.yswl.view.listview.BaseListViewAdapter;

public class PanoramaAdapter extends BaseListViewAdapter<PanoramaBean> {

	public PanoramaAdapter(Context _context) {
		super(_context);
	}
	
	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder __viewHolder = null;
		if (convertView == null) {
			convertView = LayoutInflater.from(this.context).inflate(R.layout.activity_panorama_list_item, null);
			__viewHolder = new ViewHolder();
			__viewHolder.newsTv = (TextView) convertView.findViewById(R.id.type_tv);
			convertView.setTag(__viewHolder);
		} else {
			__viewHolder = (ViewHolder) convertView.getTag();
		}

		PanoramaBean data = this.getItem(position);
		__viewHolder.newsTv.setText(data.name);
		return convertView;
	}

	private static class ViewHolder {
		public TextView newsTv;
	}

}
